package models

type StartLiveStatus struct {
	Code int `json:"code" required:"true" description:"0:开始直播成果..."`
	SessionId int `json:"session_id" required:"true" description:"会话id"`
	Message string `json:"err" required:"true" description:"错误信息"`
	PushUrl string `json:"push_url" required:"true" description:"百度云的推送地址"`
}

type VideoDesInfo struct {
	Code int `json:"code" required:"true" description:"0:返回成功..."`
	ErrMsg string `json:"err" required:"true" description:"错误信息"`
	VideoDes *VideoDes `json:"vodeo_info" required:"true" description:"视频详情"`
}

type VideoDes struct {
	Id int `json:"id" required:"true" description:"唯一id"`
	ActiveNum int `json:"active_num" required:"false" description:"活跃人数"`
	Title string `json:"title" required:"true" description:"标题"`
	Time string `json:"time" required:"true" description:"开始时间"`
	IsPraise int `json:"time" required:"false" description:"是否已经点赞，0：未点赞，1：已点赞 ，登陆用户需要解析"`
	Views []*View `json:"views" required:"true" description:"视角列表"`
}

type View struct {
	Position int `json:"position" required:"true" description:"位置position"`
	TotalTime int  `json:"total_time" required:"true" description:"总时长，单位秒，视频回顾时候需要"`
	PlayUrl string `json:"paly_url" required:"true" description:"播放地址"`
}

type PraiseInfo struct {
	Code int `json:"code" required:"true" description:"0:返回成功..."`
	ErrMsg string `json:"err" required:"true" description:"错误信息"`
}